package com.fast.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户和角色关联表(UserRole)表实体类
 *
 * @author hjw
 * @since 2021-12-02 23:42:16
 */
@Data
@TableName("sys_user_role")
@ApiModel(value="UserRole",description="用户和角色关联表实体类")
public class UserRole extends Model<UserRole> implements Serializable {

                        
    @TableId(type=IdType.ID_WORKER)
    @ApiModelProperty(name = "userId", value = "用户ID")
    private Long userId;
                        
    @ApiModelProperty(name = "roleId", value = "角色ID")
    private Long roleId;
    
    private static final long serialVersionUID = 215799990204171633L;
}